/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.checkbreed.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.sys.entity.User;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 审定品种管理Entity
 * @author 王虎
 * @version 2017-03-10
 */
public class TpCheckBreed extends DataEntity<TpCheckBreed> {
	
	private static final long serialVersionUID = 1L;
	private String cropId;		// 作物id
	private String varietiesName;		// 品种名称
	private String checkCode;		// 审定编号
	private Date checkYear;		// 审定年份
	private String checkLevel;		// 审定级别
	private User user;		// 站点id
	private String checkStatus;		// 审定状态
	private String priceInfo;		// 价格信息
	
	public TpCheckBreed() {
		super();
	}

	public TpCheckBreed(String id){
		super(id);
	}

	@Length(min=0, max=64, message="作物id长度必须介于 0 和 64 之间")
	public String getCropId() {
		return cropId;
	}

	public void setCropId(String cropId) {
		this.cropId = cropId;
	}
	
	@Length(min=1, max=20, message="品种名称长度必须介于 1 和 20 之间")
	public String getVarietiesName() {
		return varietiesName;
	}

	public void setVarietiesName(String varietiesName) {
		this.varietiesName = varietiesName;
	}
	
	@Length(min=1, max=20, message="审定编号长度必须介于 1 和 20 之间")
	public String getCheckCode() {
		return checkCode;
	}

	public void setCheckCode(String checkCode) {
		this.checkCode = checkCode;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCheckYear() {
		return checkYear;
	}

	public void setCheckYear(Date checkYear) {
		this.checkYear = checkYear;
	}
	
	@Length(min=0, max=20, message="审定级别长度必须介于 0 和 20 之间")
	public String getCheckLevel() {
		return checkLevel;
	}

	public void setCheckLevel(String checkLevel) {
		this.checkLevel = checkLevel;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=10, message="审定状态长度必须介于 0 和 10 之间")
	public String getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(String checkStatus) {
		this.checkStatus = checkStatus;
	}
	
	@Length(min=0, max=64, message="价格信息长度必须介于 0 和 64 之间")
	public String getPriceInfo() {
		return priceInfo;
	}

	public void setPriceInfo(String priceInfo) {
		this.priceInfo = priceInfo;
	}
	
}